import VueRouter from "vue-router";
import Vue from "vue";
import Home from "../components/Home";
import Answer from "../components/Answer";

Vue.use(VueRouter);

const routes=[
    {
        path:'',
        redirect:'/home'
    },
    {
        path:'/home',
        component:Home
    },
    {
        path: '/answer',
        name:'Answer',
        component: Answer
    }
];

const router=new VueRouter({
    routes,
    mode:"history",
    linkActiveClass:"active"
});

export default router;

